import {GetMainNavigation, SetMainNavigation} from '../action/actionType'

export default function navigation(state = {mainNavigation: null}, action) {
    switch (action.type) {
        case SetMainNavigation:
            return Object.assign({}, state, {
                mainNavigation: action.data
            })
        case GetMainNavigation:
            return state
        default:
            return state
    }
}
